//
//  Copyright 2011 Alexei "Oleksiy" Puzikov. All rights reserved.
//

//  This is the public API one should use.

extern void globalInit();
extern void globalDone();

extern void startListening();
extern void stopListening();

extern int getTrackballCursorIndex();
extern int getTrackballButtonIndex();
extern int getTrackballWheelIndex();

extern void resetTrackball(int tball);
extern void resetTrackballCoordinates(int tball);
extern void resetTrackballWheel(int tball);

extern int getTrackballDx(int tball);
extern void setTrackballDx(int tball, int dx);

extern int getTrackballDy(int tball);
extern void setTrackballDy(int tball, int dy);

extern int getTrackballWheel(int tball);
extern void setTrackballWheel(int tball, int dw);
